package com.fuyao.cloud.daemon.quartz.util;

public class MsgParamUtil {

    public static String getPath(String openType) {
        return "";
    }

    public static String getPath(String openType, Long sourceId) {
        char[] cs = openType.toCharArray();
        StringBuilder url = new StringBuilder();
        for (int i = 0; i < cs.length; i++) {
            if (cs[i] == ':') {
                url.append(sourceId);
                while ((i + 1) < cs.length && cs[i + 1] != '/') {
                    i++;
                }
            } else {
                url.append(cs[i]);
            }
        }
        return url.toString();
    }
}
